//
//  CAHistoryDataNALG.h
//  sr01sdkProject
//
//  Created by  on 2024/9/2.
//

#import <Foundation/Foundation.h>
#import "CANalgProtocal.h"

NS_ASSUME_NONNULL_BEGIN

@interface CAHistoryDataNALG : NSObject<CANalgProtocal>
@property(strong, readonly, nonatomic) NSNumber *timeStamp;
@property(strong, nonatomic, readonly)NSNumber *dataUuid; // 记录唯一标识

/*
 未测到 Cardiac coherence 值为 0xFF
 - Cardiac coherence 值为 0-0.03，表示高压力
 - Cardiac coherence 值为 0.03-0.1，表示中等压力
 - Cardiac coherence 值为 0.1-1.00，表示无压力
 */
@property(strong, nonatomic, readonly)NSNumber *cardiacCoherence; //心脏连贯性 实际值范围 0-1，输出值为实际值*100

@property(strong, nonatomic, readonly) NSNumber *breathRate; // 1-50

@property(strong, nonatomic, readonly) NSNumber *IBI;// float 0.00-1.00
@property(strong, nonatomic, readonly) NSNumber *hrv;

/*
 - Stress 值为 0.0-0.1，表示高压力
 - Stress 值为 0.1-0.5，表示中等压力
 - Stress 值为 0.5-1.0，表示无压力
 */
@property(strong, nonatomic, readonly) NSNumber *stress;// float 0.0-1.0

@property(strong, nonatomic, readonly) NSNumber *restHr;// Resting heart rate


-(instancetype)initWithData:(NSData *)data;

-(NSNumber *)dataTimeStamp;

@end

NS_ASSUME_NONNULL_END
